-- GENERATED SPELL FOR [Baron Kazum] --


function spell0_15205(pUnit, Event) --@Elemental Spawn-in,Self--
pUnit:FullCastSpellOnTarget(25035,pUnit)
pUnit:RegisterEvent('Sorts_15205', 556, 1)
end

function spell1_15205(pUnit, Event) --@Massive Tremor,Self--
pUnit:FullCastSpellOnTarget(19129,pUnit)
pUnit:RegisterEvent('Sorts_15205', 2270, 1)
end

function spell2_15205(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(17547,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15205', 5263, 1)
end

function spell3_15205(pUnit, Event) --@Stomp,Self--
pUnit:FullCastSpellOnTarget(25056,pUnit)
pUnit:RegisterEvent('Sorts_15205', 2262, 1)
end

function Sorts_15205(pUnit, Event)
local choix_sorts_15205 = math.random(0, 3)
if choix_sorts_15205 == 0 then
pUnit:RegisterEvent('spell0_15205', 1, 1)
end
if choix_sorts_15205 == 1 then
pUnit:RegisterEvent('spell1_15205', 1, 1)
end
if choix_sorts_15205 == 2 then
pUnit:RegisterEvent('spell2_15205', 1, 1)
end
if choix_sorts_15205 == 3 then
pUnit:RegisterEvent('spell3_15205', 1, 1)
end
end

function mob15205_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15205', math.random(1500, 3000), 1)
end

function mob15205_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15205_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15205_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15205, 1, 'mob15205_Action')
RegisterUnitEvent(15205, 2, 'mob15205_Leave')
RegisterUnitEvent(15205, 3, 'mob15205_Kill')
RegisterUnitEvent(15205, 4, 'mob15205_Die')
